# 食堂类
class DiningHall:
    id = ""
    # 用户属性
    name = ""          # 姓名
    desc = ""
    sign = ""


    # 构造方法，初始化用户对象
    def __init__(self, name):
        self.name = name

    # 静态方法，从字典解码用户信息
    @staticmethod
    def decode(dining_hall):
        diningHall = DiningHall(dining_hall['name'])
        diningHall.desc = dining_hall['desc']
        diningHall.id = dining_hall['id']
        diningHall.sign = dining_hall['sign']
        return diningHall




